<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>搜索结果-智慧公社</title>
<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/css/font-awesome.min.css" rel="stylesheet">
<link href="__PUBLIC__/css/animate.css" rel="stylesheet" />
<link href="__PUBLIC__/css/index.css" rel="stylesheet" />
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/headroom.js"></script>
<script src="__PUBLIC__/js/jquery.snippet.min.js"></script>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/jquery.pin.min.js"></script>
<script src="__PUBLIC__/js/index.js"></script>
<script>
    var url="{:U('Index/addArticle')}";
	var urlDown="{:U('Index/daoAcrticle')}";
	var fileUrl="{:U('Index/attention')}"
	var heartUrl="{:U('Index/heart')}";
	var urlOrder="{:U('Index/discussOrder')}";
	var urlImages="__PUBLIC__/images/";
</script>
<!--<style>
    *{border: 1px solid rgb(250,0,255);}
    </style>-->
</head>
<body>

<!-- 头部导航开始 --> 
<include file="Index/title" /> 
<!-- 主体信息开始 -->
<div class="search-user">
  <div class="container">
    <div class="search-title" style="font-size:36px;padding-right:10px;"><i class="fa fa-user"></i></div>
    <div class="search-title">成员</div>
    <div class="clearfix"></div>
    <volist name="users" id="vo">
      <div class="search-user-card">
        <div class="user-img"> 
            <a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}"><img src="{$vo['user_img']}" width="80" class="img-circle" /></a> 
        </div>
        <div class="user-info">
          <div><span  class="user-info-name">{$vo['user_name']}</span> <span class="user-info-tag">( 擅长领域: <if condition="count($vo['tag']) == 0"> 无 <else/>
    <volist name="vo['tag']" id="tag"> <span>{$tag} </span></volist></if>)</span></div>
          <div>{$vo['user_text']}</div>
          <div class="user-info-heart"><i class="fa fa-heart fa-lg"></i> {$vo['user_praise']}</div>
        </div>
        <div class="clearfix"></div>
      </div>
    </volist>
  </div>
</div>
<div class="search-single">
<div class="container">
<div class="search-title" style="font-size:36px;padding-right:10px;"><i class="fa fa-comments"></i></div>
<div class="search-title">讨论</div>
<div class="clearfix"></div>
<div class="row" >
  <div class="tab-pane fade active in" id="all">
    <div class="row" style="margin-top:15px;">
      <div class="col-xs-6 leftCont" id="panel-left" >
        <volist name="articles" id="vo" mod="2">
          <eq name="mod"  value="0" >
            <div class="card panel panel-default">
              <div class="panel-body">
                <div class="card-head">
                  <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                  <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}">{$vo['user_name']}</a><small>@{$vo['article_time']|date='Y-m-d H:i',###}</small></div>
                  <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3)">
                    <div class="card-head-right">
					  <span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                      <if condition="$vo['is_order'] eq 1"> <span class="fa fa-rss marking"> {$vo['article_order']}</span>
                        <else/>
                        <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "> {$vo['article_order']}</span></span> </if>
                    </div>
                    <else/>
                    <div class="card-head-right">
                    <span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                    <if condition="$vo['article_father_id'] eq 0">
                      <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                        <i value="{$vo['article_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                        <else/>
                        <i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                      </if>
                      <else/>
                      <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                        <i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                        <else/>
                        <i value="{$vo['article_father_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                      </if>
                    </if>
                    </div>
                  </if>
                  <div class="clearfix"></div>
                </div>
                <div class="card-body">
	                <switch name="vo['article_type']">
	                    <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></span></div>
	                   <div class="articleCont">
	                   <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
	                   </div>
	                    </case>
	                    <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
	                   <div class="articleCont">
	                   <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
	                   </div>
	                    </case>
	                     <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
	                    <div class="articleCont">
	                   <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
	                   </div>
	                     </case>
	                     <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
	                    <div class="articleCont">
	                   <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
	                   </div>
	                     </case>
	                     <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
	                    <div class="articleCont">
	                    <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
	                   </div>
	                     </case>
	                      <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
	                    <div class="articleCont">
	                    <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
	                   </div>
	                     </case>
	                     
                    </switch>
	
                </div>
                <div class=""></div>
              </div>
            </div>
          </eq>
        </volist>
      </div>
      <div class="col-xs-6 rightCont" id="panel-right">
        <volist name="articles" id="vo" mod="2">
          <eq name="mod"  value="1" >
            <div class="card panel panel-default">
              <div class="panel-body">
                <div class="card-head">
                  <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}" target="_blank"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                  <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}" target="_blank">{$vo['user_name']}</a><small>@{$vo['article_time']|date='Y-m-d H:i',###}</small></div>
                  <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3)">
                    <div class="card-head-right">
                      <span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                      <if condition="$vo['is_order'] eq 1"><span class="fa fa-rss marking"> {$vo['article_order']}</span>
                        <else/>
                        <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "> {$vo['article_order']}</span></span> </if>
                    </div>
                    <else/>
                    <div class="card-head-right">
                    <span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                    <if condition="$vo['article_father_id'] eq 0">
                      <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                       <i value="{$vo['article_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                        <else/>
                        <i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                      </if>
                      <else/>
                      <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                        <i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                        <else/>
                        <i value="{$vo['article_father_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                      </if>
                    </if>
                    </div>
                  </if>
                  <div class="clearfix"></div>
                </div>
                <div class="card-body">
                       <switch name="vo['article_type']">
                           <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></span></div>
                          <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                           </case>
                           <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                          <div class="articleCont">
                          <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                           </case>
                            <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                             <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                             </case>
                            
                            </switch>

                        </div>
                <div class=""></div>
              </div>
            </div>
          </eq>
        </volist>
      </div>
    </div>
  </div>
</div>
<!-- 主体信息结束 -->

<footer> </footer>
<script type="text/javascript">
        jQuery(function ($) {
			$('#search-af').animate({width:'350px',opacity:'1'},1000);
			$('#search-af').show();
			$('#s-input').focus();
			$('#s-input').val('<?php echo $words ?>');
            $(document).ready(function () {
                var header = new Headroom(document.querySelector(".navbar"), {
                    tolerance: 0,
                    offset: 50,
                    classes: {
                        initial: "animated",
                        pinned: "slideDown",
                        unpinned: "slideUp"
                    }
                });
                header.init();
                $('button[data-loading-text]').click(function () {
                    var btn = $(this).button('loading');
                    setTimeout(function () {
                        btn.button('reset');
                    }, 2000);
                });
                $('.card').mouseover(function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $('.card').mouseout(function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $('[data-dismiss="fuck"]').click(function () {
                    $(this).closest('.card').fadeOut(1000);
                });
                //var messcont = $("#myTabContent").find(".mess-close").size();
                //$(".mess-nord").text(messcont);

 
                $('.fake-textarea').click(function () {
                    $('.fake-textarea').hide();
                    $('#woqu').fadeIn();
                    $("#editor").focus();
                });

            });
        });
    </script>
    <include file="Index/copyright" />
</body>
</html>